﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__hd">
    <h1 class="page__title">
        <i class="fa fa-ad my-page-title-icon"> </i>
    </h1>
    <p class="page__desc"> Banner 管理。 </p>
</div>

<div class="page__bd">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd">1. 首页</div>
        <div class="weui-panel__bd">
            {% for banner in homepage_banners %}
                {% if banner.enabled == 1 %}
                    <a href="{{ banner.link_url|cdn }}" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-cell__bd">
                            <img class="banner-img" src="{{ banner.image_url|cdn }}" alt="">
                        </div>
                    </a>
                {% endif %}
            {% endfor %}
        </div>
        <div class="weui-panel__ft">
            <a href="{% url 'gma:config_homepage_banners' %}" class="weui-cell weui-cell_access weui-cell_link">
                <div class="weui-cell__bd">查看更多</div>
                <span class="weui-cell__ft"></span>
            </a>
        </div>
    </div>

    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd">2. 聊天室</div>
        <div class="weui-panel__bd">
            {% for banner in rooms_banners %}
                {% if banner.enabled == 1 %}
                    <a href="{{ banner.link_url|cdn }}" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-cell__bd">
                            <img class="banner-img" src="{{ banner.image_url|cdn }}" alt="">
                        </div>
                    </a>
                {% endif %}
            {% endfor %}
        </div>
        <div class="weui-panel__ft">
            <a href="{% url 'gma:config_rooms_banners' %}" class="weui-cell weui-cell_access weui-cell_link">
                <div class="weui-cell__bd">查看更多</div>
                <span class="weui-cell__ft"></span>
            </a>
        </div>
    </div>

    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd">3. 个性装扮页面</div>
        <div class="weui-panel__bd">
            {% for banner in custom_decoration_banners %}
                {% if banner.enabled == 1 %}
                    <a href="{{ banner.link_url|cdn }}" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-cell__bd">
                            <img class="banner-img" src="{{ banner.image_url|cdn }}" alt="">
                        </div>
                    </a>
                {% endif %}
            {% endfor %}
        </div>
        <div class="weui-panel__ft">
            <a href="{% url 'gma:config_custom_decoration_banners' %}" class="weui-cell weui-cell_access weui-cell_link">
                <div class="weui-cell__bd">查看更多</div>
                <span class="weui-cell__ft"></span>
            </a>
        </div>
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}
{% endblock extra_js %}